Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a build issue related to Qt dll files. #798

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

KineticTheory
Copy link
Collaborator

@KineticTheory KineticTheory commented Apr 12, 2020

Description of changes

  • This issue only became a fatal error when I moved the vs2019 build environment to cmake-3.17. There was a POST_BUILD command that copied Qt dll files to the unit test build directory, but the command was malformed. The issue is fixed.
  • I also removed some complicated logic from component_macros.cmake that was also related to copying dll file to the unit test binary directories. It doesn't appear that this logic is required with the new tools.
  • Fixes Can we remove copy_dll_link_libraries_to_build_dir? #747

Status

+This issue only became a fatal error when I moved the vs2019 build environment to cmake-3.17. There was a `POST_BUILD` command that copied Qt dll files to the unit test build directory, but the command was malformed. The issue is fixed.
+I also removed some complicated logic from `component_macros.cmake` that was also related to copying dll file to the unit test binary directories.  It doesn't appear that this logic is required with the new tools.
@KineticTheory KineticTheory changed the title Fix a build issue related to Qt dll files. WIP: Fix a build issue related to Qt dll files. Apr 12, 2020
@KineticTheory KineticTheory self-assigned this Apr 12, 2020
@codecov
Copy link

codecov bot commented Apr 12, 2020

Codecov Report

Merging #798 into develop will increase coverage by 0.1%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           develop    #798     +/-   ##
=========================================
+ Coverage     94.0%   94.1%   +0.1%     
=========================================
  Files          367     364      -3     
  Lines        17219   17072    -147     
=========================================
- Hits         16187   16070    -117     
+ Misses        1032    1002     -30     

@KineticTheory KineticTheory changed the title WIP: Fix a build issue related to Qt dll files. Fix a build issue related to Qt dll files. Apr 12, 2020
@KineticTheory KineticTheory added this to the Draco-7_7_0 milestone Apr 12, 2020
@KineticTheory
Copy link
Collaborator Author

@keadyk This is ready for review and merge. It is almost entirely the removal of code that was once required but that cmake now handles automatically.

@keadyk
Copy link
Collaborator

keadyk commented Apr 13, 2020

LGTM! Merging now. :)

@keadyk keadyk merged commit b405e7b into lanl:develop Apr 13, 2020
@KineticTheory KineticTheory deleted the rm_dll_copy branch April 13, 2020 23:06
KineticTheory added a commit to KineticTheory/Draco that referenced this pull request Apr 15, 2020
…ed dlls.

+ After lanl#798, the build system no longer copied the eospac or compton dll to
  the build tree.  When these files are missing at run time, the tests will
  fail.
+ TPLs provided by the vcpkg package manager know how to install themselves
  into the build tree.  This is what allowed the simplifications found in lanl#798
  to work.  However, eospac and compton are not currently provided by vcpkg, so
  they must be copied via `POST_BUILD` rules.
+ This PR fixes issue lanl#802
KineticTheory added a commit that referenced this pull request Apr 15, 2020
…ed dlls. (#803)

+ After #798, the build system no longer copied the eospac or compton dll to
  the build tree.  When these files are missing at run time, the tests will
  fail.
+ TPLs provided by the vcpkg package manager know how to install themselves
  into the build tree.  This is what allowed the simplifications found in #798
  to work.  However, eospac and compton are not currently provided by vcpkg, so
  they must be copied via `POST_BUILD` rules.
+ This PR fixes issue #802
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can we remove copy_dll_link_libraries_to_build_dir?
2 participants